using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
using UnityEngine.SceneManagement;
using UnityEngine.UI;

public class GameController : MonoBehaviour
{
    public Vector3 roleBorn;

    public PlayerCharacterController player;
    
    public static GameController instance;

    public bool isGetMission;
    private void Awake()
    {
        instance = this;
        DontDestroyOnLoad(gameObject);
    }


    private void OnDestroy()
    {
        instance = null;
    }
    // Start is called before the first frame update
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {
        if (isGetMission == true)
        {
            GameData.GetMissions();
            isGetMission = false;
        }
    }
    public void Save()
    {
        player.Save();
        GameData.Save();
    }

    public void Load()
    {
      
    }

}
